$.ajaxSetup({cache: false});
$.gritter.options.position = 'top-right';
hljs.configure({languages: ['bash']});
var apiList = {
    health: '/health',
    key: {
        query: '/key/query',
        deny: '/key/deny',
        reject: '/key/reject',
        delete: '/key/delete',
        accept: '/key/accept',
    },
    minion: {
        query: '/minion/query',
    },    
    server: {
        query: '/server/query',
    },
    process: {
        query: '/process/query',
    },
    sysproc: {
        mark: '/sysproc/mark',
        query: '/sysproc/query'
    },
    job: {
        list: '/job/list',
        query: '/job/query',
        delete: '/job/delete'
    },
    execute: '/execute'
};
var $baseOpts = {
    idField: 'id',
    uniqueId: 'id',
    search: true,
    pagination: true,
    paginationVAlign: 'bottom',
    paginationHAlign: 'left',
    paginationDetailHAlign: 'right',
    pageList: [20, 50, 100, 500],
    toolbarAlign: 'left',
    striped: true,
    showToggle: true,
    showColumns: false,
    showExport: false,
}

var $baseCols = [
    {field: 'selector', checkbox: true},
    {
        field: 'Number', 
        title: '序号', 
        align: 'center', 
        width: 35,
        formatter: function (value, row, index) {
            return index + 1;
        }
    },
    {
        title: 'minionId',
        field: 'minionId',
        class: 'minion-id'
    },
];
